import request from '@/utils/request'

// 查询税地发票类目列表
export function listTaxInvoice(query) {
  return request({
    url: '/system/taxInvoice/list',
    method: 'get',
    params: query
  })
}

// 查询税地发票类目详细
export function getTaxInvoice(taxInvoice) {
  return request({
    url: '/system/taxInvoice/' + taxInvoice,
    method: 'get'
  })
}

// 新增税地发票类目
export function addTaxInvoice(data) {
  return request({
    url: '/system/taxInvoice',
    method: 'post',
    data: data
  })
}

// 修改税地发票类目
export function updateTaxInvoice(data) {
  return request({
    url: '/system/taxInvoice',
    method: 'put',
    data: data
  })
}

// 删除税地发票类目
export function delTaxInvoice(taxInvoice) {
  return request({
    url: '/system/taxInvoice/' + taxInvoice,
    method: 'delete'
  })
}
